home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / swing / FilePane$DelayedSelectionUpdater.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.1 KB  |  33 lines

  1. package sun.swing;
  2.  
  3. import java.io.File;
  4. import javax.swing.SwingUtilities;
  5.  
  6. class FilePane$DelayedSelectionUpdater implements Runnable {
  7.    File editFile;
  8.    // $FF: synthetic field
  9.    final FilePane this$0;
  10.  
  11.    FilePane$DelayedSelectionUpdater(FilePane var1) {
  12.       this(var1, (File)null);
  13.    }
  14.  
  15.    FilePane$DelayedSelectionUpdater(FilePane var1, File var2) {
  16.       this.this$0 = var1;
  17.       this.editFile = var2;
  18.       if (var1.isShowing()) {
  19.          SwingUtilities.invokeLater(this);
  20.       }
  21.  
  22.    }
  23.  
  24.    public void run() {
  25.       this.this$0.setFileSelected();
  26.       if (this.editFile != null) {
  27.          FilePane.access$400(this.this$0, FilePane.access$800(this.this$0).convertRowIndexToView(this.this$0.getModel().indexOf(this.editFile)));
  28.          this.editFile = null;
  29.       }
  30.  
  31.    }
  32. }
  33.